/*
* $Id: STreeItem.h 130 2010-08-06 15:19:16Z volok-aleksej@yandex.ru $
*
* Copyright 2010 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _STREE_ITEM_H_
#define _STREE_ITEM_H_

#define SIZE_STREE_ITEM_X	100
#define SIZE_STREE_ITEM_Y	60
#define DIST_ITEMS			10

class CSTreeItem
{
	int m_nId;
	std::tstring m_strName;
private:
	CSize m_size;
	CPoint m_point;
	bool m_bSel;
public:
	CSTreeItem(int nId, const std::tstring& strName);
	~CSTreeItem();
public:
	void SetPos(CPoint pos);
	void SetSel(bool bSel);
	bool IsSel();
	CRect GetRect();
	int GetId();
public:
	void Paint(CDC* dc);
};

#endif/*_STREE_ITEM_H_*/